package com.nineclock.system.service;


import com.nineclock.system.dto.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @Package: com.nineclock.system.service
 * @ClassName: SysCompanyService
 * @Author: 小康
 * @CreateTime: 2021-06-10 17:13
 * @Description:
 */
public interface SysCompanyService {
    //查询当前企业信息
    SysCompanyDTO queryCompanyInfo();

    //上传企业logo
    String uploadCompanyLogo(MultipartFile file) throws IOException;

    //保存上传信息
    void updateCompanyInfo(SysCompanyDTO sysCompanyDTO);

    //获取注管理员信息
    SysCompanyUserDTO getCurrentAdmin();

    //获取员工列表
    void changeSysAdmin(SysChangeMainManagerDTO sysChangeMainManagerDTO);

    //企业列表模糊查询
    List<SysCompanyDTO> queryCompanyByName(String keyword);

    //申请加入企业
    void applyJoinCompany(SysApplyJoinCompanyUserDTO sysApplyJoinCompanyUserDTO);

    //审核加入企业
    void allowedJoinCompany(SysAllowedJoinCompanyUserDTO sysAllowedJoinCompanyUserDTO);

    //根据用户id查询企业列表
    List<SysCompanyDTO> queryCompanyList(Long userId);
}
